﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DelegateApp
{


    internal class PhotoProcessor
    {
        internal delegate void PhotoFilterHandler(Photo photo);

        internal void Processor(string path,PhotoFilterHandler filterHandler)
        {
            var photo=Photo.Load(path);
            filterHandler(photo);
            photo.Save();
        }
    }
}
